<?php

namespace JsonLowCode\UI;

use JsonLowCode\Schema;
use JsonLowCode\Traits\Props\HasClosable;
use JsonLowCode\Traits\Props\HasDisabled;
use JsonLowCode\Traits\Props\HasName;

/**
 * 组件 - 标签页 Tab
 * @method static Tab make(string $name = null) Tab组件
 */
class Tab extends Schema
{
    protected string $componentName = "NTab";

    use HasClosable, HasDisabled, HasName;

    /**
     * @param mixed|null $name
     */
    public function __construct(mixed $name = null)
    {
        parent::__construct();
        $this->name($name);
    }
}
